import request from '@/utils/request'

// 查询任务列表
export function lastExam() {
  return request({
    url: '/exam/last',
    method: 'get'
  })
}

/**
 * 获取考试试卷
 * @param query
 * @returns {*}
 */
export function examPaper(query){
  return request({
    url: '/exam/paper',
    method: 'get',
    params: query
  })
}

/**
 * 提交考试试卷
 * @param query
 * @returns {*}
 */
export function submitPaper(data){
  return request({
    url: '/exam/paper/submit',
    method: 'post',
    data: data
  })
}

